package 作业3.test3;

public class Test3_2 {
    public static void main(String args[]){
        Shape re=new Rectangle(2,3);
        fun(re);
        Shape sq=new Square(2);
        fun(sq);
        Shape ci=new Circle(2);
        fun(ci);
    }
    public static void fun(Shape p){
        p.showArea();
    }
}
